import { defineComponent as h, openBlock as _, createElementBlock as v, createVNode as i, unref as d, withCtx as w, createTextVNode as u, createElementVNode as c, ref as E, Fragment as T, toDisplayString as P, pushScopeId as Z, popScopeId as A, createStaticVNode as J, warn as R, getCurrentInstance as F, inject as G, computed as I, normalizeClass as L, normalizeStyle as D, renderSlot as X, createCommentVNode as j } from "vue";
import { ElButton as x, ElMessage as Y } from "element-plus";
const Q = { class: "kda-btn" }, K = /* @__PURE__ */ h({
  __name: "KdaButton",
  setup(e) {
    const o = (t) => {
      Y.success("点击了按钮" + (t || "1")), console.log("点击了按钮", t);
    };
    return (t, n) => (_(), v("div", Q, [
      i(d(x), {
        onClick: n[0] || (n[0] = (r) => o(1)),
        type: "primary"
      }, {
        default: w(() => [
          u("Primary")
        ]),
        _: 1
      }),
      i(d(x), {
        onClick: n[1] || (n[1] = (r) => o(2)),
        type: "primary",
        plain: ""
      }, {
        default: w(() => [
          u("Plain")
        ]),
        _: 1
      }),
      i(d(x), {
        onClick: n[2] || (n[2] = (r) => o(3)),
        type: "danger"
      }, {
        default: w(() => [
          u("Danger")
        ]),
        _: 1
      }),
      c("button", {
        onClick: n[3] || (n[3] = (r) => o("普通"))
      }, "按钮")
    ]));
  }
}), V = (e) => (Z("data-v-1d5be6d4"), e = e(), A(), e), U = { class: "card" }, ee = /* @__PURE__ */ V(() => /* @__PURE__ */ c("p", null, [
  /* @__PURE__ */ u(" Edit "),
  /* @__PURE__ */ c("code", null, "components/HelloWorld.vue"),
  /* @__PURE__ */ u(" to test HMR ")
], -1)), te = /* @__PURE__ */ V(() => /* @__PURE__ */ c("p", null, [
  /* @__PURE__ */ u(" Check out "),
  /* @__PURE__ */ c("a", {
    href: "https://vuejs.org/guide/quick-start.html#local",
    target: "_blank"
  }, "create-vue"),
  /* @__PURE__ */ u(", the official Vue + Vite starter ")
], -1)), oe = /* @__PURE__ */ V(() => /* @__PURE__ */ c("p", null, [
  /* @__PURE__ */ u(" Install "),
  /* @__PURE__ */ c("a", {
    href: "https://github.com/vuejs/language-tools",
    target: "_blank"
  }, "Volar"),
  /* @__PURE__ */ u(" in your IDE for a better DX ")
], -1)), se = /* @__PURE__ */ V(() => /* @__PURE__ */ c("p", { class: "read-the-docs" }, "Click on the Vite and Vue logos to learn more", -1)), ne = /* @__PURE__ */ h({
  __name: "HelloWorld",
  props: {
    msg: {}
  },
  setup(e) {
    const o = E(0);
    return (t, n) => (_(), v(T, null, [
      c("h1", null, P(t.msg), 1),
      c("div", U, [
        c("button", {
          type: "button",
          onClick: n[0] || (n[0] = (r) => o.value++)
        }, "count is " + P(o.value), 1),
        ee
      ]),
      te,
      oe,
      se
    ], 64));
  }
}), k = (e, o) => {
  const t = e.__vccOpts || e;
  for (const [n, r] of o)
    t[n] = r;
  return t;
}, z = /* @__PURE__ */ k(ne, [["__scopeId", "data-v-1d5be6d4"]]), re = "/vite.svg", ae = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--logos'%20width='37.07'%20height='36'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%20256%20198'%3e%3cpath%20fill='%2341B883'%20d='M204.8%200H256L128%20220.8L0%200h97.92L128%2051.2L157.44%200h47.36Z'%3e%3c/path%3e%3cpath%20fill='%2341B883'%20d='m0%200l128%20220.8L256%200h-51.2L128%20132.48L50.56%200H0Z'%3e%3c/path%3e%3cpath%20fill='%2335495E'%20d='M50.56%200L128%20133.12L204.8%200h-47.36L128%2051.2L97.92%200H50.56Z'%3e%3c/path%3e%3c/svg%3e", le = {}, ce = /* @__PURE__ */ J('<a href="https://vitejs.dev" target="_blank"><img src="' + re + '" class="logo" alt="Vite logo"></a><span style="font-size:30px;padding:0 30px;">+</span><a href="https://vuejs.org/" target="_blank"><img src="' + ae + '" class="logo vue" alt="Vue logo"></a>', 3), ie = [
  ce
];
function de(e, o) {
  return _(), v("div", null, ie);
}
const H = /* @__PURE__ */ k(le, [["render", de]]);
/**
* @vue/shared v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
process.env.NODE_ENV !== "production" && Object.freeze({});
process.env.NODE_ENV !== "production" && Object.freeze([]);
const ue = Object.prototype.hasOwnProperty, B = (e, o) => ue.call(e, o), M = (e) => e !== null && typeof e == "object";
function pe(e) {
  for (var o = -1, t = e == null ? 0 : e.length, n = {}; ++o < t; ) {
    var r = e[o];
    n[r[0]] = r[1];
  }
  return n;
}
const W = "__epPropKey", _e = (e) => e, ve = (e) => M(e) && !!e[W], fe = (e, o) => {
  if (!M(e) || ve(e))
    return e;
  const { values: t, required: n, default: r, type: p, validator: y } = e, b = {
    type: p,
    required: !!n,
    validator: t || y ? ($) => {
      let f = !1, g = [];
      if (t && (g = Array.from(t), B(e, "default") && g.push(r), f || (f = g.includes($))), y && (f || (f = y($))), !f && g.length > 0) {
        const C = [...new Set(g)].map((S) => JSON.stringify(S)).join(", ");
        R(`Invalid prop: validation failed${o ? ` for prop "${o}"` : ""}. Expected one of [${C}], got value ${JSON.stringify($)}.`);
      }
      return f;
    } : void 0,
    [W]: !0
  };
  return B(e, "default") && (b.default = r), b;
}, me = (e) => pe(Object.entries(e).map(([o, t]) => [
  o,
  fe(t, o)
])), ge = (e, o) => (e.install = (t) => {
  for (const n of [e, ...Object.values({})])
    t.component(n.name, n);
}, e), N = "el", he = "is-", m = (e, o, t, n, r) => {
  let p = `${e}-${o}`;
  return t && (p += `-${t}`), n && (p += `__${n}`), r && (p += `--${r}`), p;
}, ye = Symbol("namespaceContextKey"), $e = (e) => {
  const o = F() ? G(ye, E(N)) : E(N);
  return I(() => d(o) || N);
}, Ve = (e, o) => {
  const t = $e();
  return {
    namespace: t,
    b: (s = "") => m(t.value, e, s, "", ""),
    e: (s) => s ? m(t.value, e, "", s, "") : "",
    m: (s) => s ? m(t.value, e, "", "", s) : "",
    be: (s, a) => s && a ? m(t.value, e, s, a, "") : "",
    em: (s, a) => s && a ? m(t.value, e, "", s, a) : "",
    bm: (s, a) => s && a ? m(t.value, e, s, "", a) : "",
    bem: (s, a, l) => s && a && l ? m(t.value, e, s, a, l) : "",
    is: (s, ...a) => {
      const l = a.length >= 1 ? a[0] : !0;
      return s && l ? `${he}${s}` : "";
    },
    cssVar: (s) => {
      const a = {};
      for (const l in s)
        s[l] && (a[`--${t.value}-${l}`] = s[l]);
      return a;
    },
    cssVarName: (s) => `--${t.value}-${s}`,
    cssVarBlock: (s) => {
      const a = {};
      for (const l in s)
        s[l] && (a[`--${t.value}-${e}-${l}`] = s[l]);
      return a;
    },
    cssVarBlockName: (s) => `--${t.value}-${e}-${s}`
  };
};
var be = (e, o) => {
  const t = e.__vccOpts || e;
  for (const [n, r] of o)
    t[n] = r;
  return t;
};
const we = me({
  direction: {
    type: String,
    values: ["horizontal", "vertical"],
    default: "horizontal"
  },
  contentPosition: {
    type: String,
    values: ["left", "center", "right"],
    default: "center"
  },
  borderStyle: {
    type: _e(String),
    default: "solid"
  }
}), xe = h({
  name: "ElDivider"
}), Ne = /* @__PURE__ */ h({
  ...xe,
  props: we,
  setup(e) {
    const o = e, t = Ve("divider"), n = I(() => t.cssVar({
      "border-style": o.borderStyle
    }));
    return (r, p) => (_(), v("div", {
      class: L([d(t).b(), d(t).m(r.direction)]),
      style: D(d(n)),
      role: "separator"
    }, [
      r.$slots.default && r.direction !== "vertical" ? (_(), v("div", {
        key: 0,
        class: L([d(t).e("text"), d(t).is(r.contentPosition)])
      }, [
        X(r.$slots, "default")
      ], 2)) : j("v-if", !0)
    ], 6));
  }
});
var Oe = /* @__PURE__ */ be(Ne, [["__file", "divider.vue"]]);
const Ee = ge(Oe), Pe = { style: { position: "relative" } }, O = /* @__PURE__ */ h({
  __name: "Divider",
  props: {
    title: { default: "" },
    color: { default: "#ccc" }
  },
  setup(e) {
    return (o, t) => {
      const n = Ee;
      return _(), v("div", Pe, [
        o.title ? (_(), v("div", {
          key: 0,
          style: D([{ position: "absolute", left: "50%", transform: "translate(-50%,-50%)", padding: "5px 15px", background: "#fff", top: "-50%", "z-index": "9" }, { color: o.color || "#ccc" }])
        }, P(o.title), 5)) : j("", !0),
        i(n)
      ]);
    };
  }
}), ke = /* @__PURE__ */ h({
  __name: "KdaLib",
  setup(e) {
    return (o, t) => (_(), v("div", null, [
      i(O, {
        title: "Element按钮",
        color: "#0070cc"
      }),
      i(K),
      i(O, {
        title: "应用信息",
        color: "#0070cc"
      }),
      i(H),
      i(O, {
        title: "组件库",
        color: "#0070cc"
      }),
      i(z, { msg: "Vite + Vue" })
    ]));
  }
}), Ce = /* @__PURE__ */ k(ke, [["__scopeId", "data-v-52c49834"]]), Ie = {
  install: (e) => {
    e.component("KdaButton", K), e.component("HelloWorld", z), e.component("SystemInfo", H), e.component("KdaLib", Ce);
  }
};
export {
  Ie as default
};
